<form action="index.php?app=whyshopseckill&ctl=admin_whyshopseckill&act=toAdd" id='newcurrency-edit-form' method="POST">
  <div class="tableform">
    <div class="division">
      <table width="100%" cellspacing="0" cellpadding="0">
        <tbody>
           <tr>
            <th><em class="red">*</em><label for="seckill_starttime"><{t}>秒杀开始时间:<{/t}></label></th>
            <td><{input type="time" name="seckill_starttime" id="seckill_starttime" required="1" vtype="time"  class="x-input " autocomplete="off" value=$whyshopseckill.seckill_starttime}></td>
          </tr>
       
           <tr>
            <th><em class="red">*</em><label for="seckill_endtime"><{t}>秒杀结束时间:<{/t}></label></th>
            <td><{input type="time" name="seckill_endtime" id="seckill_endtime" required="1" vtype="time"  class="x-input " autocomplete="off" value=$whyshopseckill.seckill_endtime}></td>
          </tr>

                 
            <th><em class="red">*</em><label for="seckill_title"><{t}>标题:<{/t}></label></th>
            <td><input type="text" name="seckill_title" id="seckill_title" required="1" vtype="required"  class="x-input " autocomplete="off" value="<{$whyshopseckill.seckill_title}>"></td>
          </tr>
  
            <tr>
            <th><em class="red">*</em><label for="seckill_description"><{t}>描述:<{/t}></label></th>
            <td><input type="text" name="seckill_description" id="seckill_description" required="1" vtype="required" value="<{$whyshopseckill.seckill_description}>"></td>


          </tr>
        


            <tr>
            <th><em class="red">*</em><label for="seckill_description"><{t}>商品:<{/t}></label></th>
            <td><{input type="object" object="goods@b2c" filter=$goodslink_filter multiple="true"  rowselect="true"  textcol="name" name="linkid" value=$whyshopseckill_goods_id  view="whyshopseckill:admin/whyshopseckill/rel_items.html"  rel_items_seckill=$whyshopseckill_goods }>

            </td>


          </tr>



           
        </tbody>
      </table>
    </div>
  </div>

  <{if $whyshopseckill.whyshopseckill_id}>
    <input type="hidden" name="whyshopseckill_id" value="<{$whyshopseckill.whyshopseckill_id}>" />
  <{/if}>


</form>

<{area inject='.mainFoot'}>


<div class="table-action"><{button type="submit"  label=$___b2c="保存"|t:'b2c' id='newmember-edit-form-submit'}></div>


<{/area}>



<script>

    (function(){
        var _form = $('newcurrency-edit-form');
        var btn =$('newmember-edit-form-submit');
        var finder = finderGroup['<{$env.get.finder_id}>'];

        _form.store('target',{
            onComplete:function(){            

            },
            onSuccess:function(response){
                var hash_res_obj = JSON.decode(response);
                if (hash_res_obj.success != undefined && hash_res_obj.success != "")
                {
                    try{
                        var _dialogIns = btn.getParent('.dialog').retrieve('instance');
                    }catch(e){}

                    if(_dialogIns)
                    {
                        _dialogIns.close();
                        finder.refresh.delay(400,finder);
                    }
                }
                else
                {
                    //alert(hash_res_obj.error);
                }            
            }
        });

        btn.addEvent('click',function(){
            _form.fireEvent('submit',{stop:$empty});



        });

    })();
</script>